#ifndef MAINWINDOW_H
#define MAINWINDOW_H

/******************************************************************************/
/*  MainWindow is class which "manage" whole program. This class create       */
/*  interface betwin user and program and create two core instanc. One        */
/*  instance is PlayMode, sacond instance is Create mode.                     */
/******************************************************************************/


#include <QMainWindow>
#include <QMessageBox>

#include "createmode.h"     //Class (Widget) with create mode window
#include "playmode.h"       //Class (Widget) with paly mode window

#include "SeriovyPort.h"    //Serial port "multi platform" library

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);   //Constructor which Initialize all aplication
    ~MainWindow();                              //Destructor
    
private:
    Ui::MainWindow *ui;                         //Main window graphicas ui
    CreateMode *create;                         //Class (Widget) containing whole create mode
    PlayMode *play;                             //Class (Widget) containing whole play mode
    QtSeriovyPort *port;                        //Serial port

    bool connectPanel(QtSeriovyPort *port, QString dotaz, QString odpoved);     //Metod used for conecting program to hardver by serial port

private slots:
    void mujFullScreen();                           //Metod which fullsceen program

};

#endif // MAINWINDOW_H
